package com.shankungfu.main;

import com.shankungfu.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

public class WebViewActivity extends Activity implements OnClickListener{

	
	private WebView webView;
	private String url = "http://shankungfu.org/account/find_password/";
	private ImageView iv;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.webview_layout);
		
		webView = (WebView) findViewById(R.id.webView);
		
		findViewById(R.id.head_refresh).setVisibility(View.GONE);
		findViewById(R.id.iv).setVisibility(View.GONE);
		iv = (ImageView) findViewById(R.id.head_goback);
		
		TextView title = (TextView) findViewById(R.id.detail_title);
		title.setText("忘记密码");
		iv.setOnClickListener(this);
		
		webView.loadUrl(url);
		
	}

	@Override
	public void onClick(View v) {
		
		switch (v.getId()) {
		case R.id.head_goback:
			finish();
			break;
		}
	}
}
